package com.ruicar.afs.cloud.afscase.channel.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.afscase.channel.enums.FeeTypeEnum;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.modules.enums.BusinessType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author infinity
 * @version 1.0
 * @date 2020/7/22 13:20
 */
@TableName("channel_voucher_info")
@Data
public class ChannelVoucherInfo extends BaseEntity {
    @ApiModelProperty("事件ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long eventId;

    @JsonSerialize(using= ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    @ApiModelProperty("渠道ID")
    private Long channelId;

    @ApiModelProperty("业务类型;newCar-新车;oldCar-二手车")
    private BusinessType businessType;

    @ApiModelProperty("费用类型;bond-保证金;compensatory-代偿金额;deduction-扣款金额")
    private FeeTypeEnum feeType;

    @ApiModelProperty("金额")
    private BigDecimal amount;
}
